package cn.hp.service;

import cn.hp.entity.Department;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DepartmentService {
    /**
     * 查询所有部门
     * @param department
     * @return
     */
    List<Department> selectDepartment(Department department);
    /**
     * 分页查询所有部门
     * @param department
     * @param page
     * @param limit
     * @return
     */
    PageInfo<Department> selectDepartment(Department department, Integer page, Integer limit);
    /**
     * 新增部门
     * @param department
     * @return
     */
    int insertDepartment(Department department);
    /**
     * 修改部门
     * @param department
     * @return
     */
    int updateDepartment(Department department);
    /**
     * 删除部门
     * @param id
     * @return
     */
    int deleteDepartmentById(Integer id);
}
